package com.itWaiLong.Controller.group;

import com.itWaiLong.Dao.Entities.DeleteGroupProject;
import com.itWaiLong.Result.Result;
import com.itWaiLong.Service.GroupProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/deleteProject")
public class DeleteGroupProjectController {

    @Autowired
    private GroupProjectService groupProjectService;

    /**
     * 删除项目
     * @param
     * @return
     */
    @PostMapping
    public Result delete(@RequestBody DeleteGroupProject deleteGroupProject) {
        groupProjectService.delete(deleteGroupProject);
        return Result.success();
    }
}
